Data Frame
# load data from csv as data frame
df <- read.csv("C:/Users/silblu/Documents/02-TIMCI-SPA-cgei.csv", sep = ';')
# pass data frame as data argument
df <- repvisforODK::check_data_args(df = df)
DT::datatable(head(df))
ODK Central
# connect to ODK Central API
repvisforODK::setup_ruODK(svc = 'https://research.odk.path.org/v1/projects/4/forms/02-TIMCI-SPA-cgei.svc', un = 'lucas.silbernagel@swisstph.ch', tz = 'GMT', pw = Sys.getenv('ODKC_PW'))
## <ruODK settings>
## Default ODK Central Project ID: 4
## Default ODK Central Form ID: 02-TIMCI-SPA-cgei
## Default ODK Central URL: https://research.odk.path.org
## Default ODK Central Username: lucas.silbernagel@swisstph.ch
## Default ODK Central Password: run ruODK::get_default_pw() to show
## Default ODK Central Passphrase: run ruODK::get_default_pp() to show
## Default Time Zone: GMT
## Default ODK Central Version: 1.1
## Default HTTP GET retries: 3
## Verbose messages: TRUE
## Test ODK Central Project ID:
## Test ODK Central Form ID:
## Test ODK Central Form ID (ZIP tests):
## Test ODK Central Form ID (Attachment tests):
## Test ODK Central Form ID (Parsing tests):
## Test ODK Central Form ID (WKT tests):
## Test ODK Central URL:
## Test ODK Central Username:
## Test ODK Central Password: run ruODK::get_test_pw() to show
## Test ODK Central Passphrase: run ruODK::get_test_pp() to show
## Test ODK Central Version: 1.1
# pass svc = TRUE as data argument
df <- repvisforODK::check_data_args(svc = TRUE)
DT::datatable(head(df))